<div class="alert alert-info-light" style="margin-bottom:20px;">
    <b>温馨提示</b><br>
    1.此页面配置该栏目生成静态规则<br>
    2.默认生成cms同步的伪静态规则，生成目录名则是匹配其他cms生成规则<br>
</div>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isstatic')}:</label>
        <div class="col-xs-8 col-sm-4">
            <input id="c-isstatic" name="row[isstatic]" type="hidden" value="{$row.isstatic|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isstatic" data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success fa-2x {if !$row.isstatic}fa-flip-horizontal text-gray{/if}"></i>
            </a>
        </div>
        <span class="msg-box n-right" for="row[isstatic]">
                <span class="msg-wrap">
                    <span class="n-msg">该栏目是否生成静态（包括详情页）</span>
                </span>
            </span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dirname')}:</label>
        <div class="col-xs-8 col-sm-4">
            <input id="c-dirname" class="form-control" name="row[dirname]" type="text" value="{$row.dirname|htmlentities}">

        </div>
        <span class="msg-box n-right" for="row[dirname]">
                <span class="msg-wrap">
                    <span class="n-msg">默认同步栏目[diyname]即栏目生成静态的目录名称</span>
                </span>
            </span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Filename')}:</label>
        <div class="col-xs-8 col-sm-4">
            <input id="c-filename" class="form-control" name="row[filename]" type="text" value="{$row.filename|htmlentities}">

        </div>
        <span class="msg-box n-right" for="row[filename]">
                <span class="msg-wrap">
                    <span class="n-msg">栏目目录下生成的默认栏目静态文件名称</span>
                </span>
            </span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Indextype')}:</label>
        <div class="col-xs-8 col-sm-4">
            <label for="row[indextype]-0"><input id="row[indextype]-0" name="row[indextype]" type="radio" value="0" data-tip="" {if !$row.indextype}checked=""{/if}> 伪静态同步</label>
            <label for="row[indextype]-1"><input id="row[indextype]-1" name="row[indextype]" type="radio" value="1" data-tip="" {if $row.indextype}checked=""{/if}> 生成目录名</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Listtype')}:</label>
        <div class="col-xs-8 col-sm-4">
            <input id="c-listtype" class="form-control" name="row[listtype]" type="text" value="{$row.listtype|htmlentities}">

        </div>
        <span class="msg-box n-right" for="row[listtype]">
                <span class="msg-wrap">
                    <span class="n-msg">列表页分页名称规则：list_{栏目id}_{页码序号}.html</span>
                </span>
            </span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Showtype')}:</label>
        <div class="col-xs-8 col-sm-4">
            <input id="c-showtype" class="form-control" name="row[showtype]" type="text" value="{$row.showtype|htmlentities}">

        </div>
        <span class="msg-box n-right" for="row[showtype]">
                <span class="msg-wrap">
                    <span class="n-msg">详情页文章生成规则：/栏目目录/{文章id}.html</span>
                </span>
            </span>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-8 col-sm-4">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
